using System;
using System.Collections.Generic;
using System.Text;
using Buka.BLL.Model;

namespace Buka.BLL.Provider
{
    [System.ComponentModel.DataObject()]
    public class UserTypeProvider
    {
        #region "Fill & Get"

        public void GetObjectFromDataRow(Buka.DAL.Users.User_TypesRow row, UserType obj)
        {
            obj.Id = row.id;
            obj.Caption = row.caption;
            if (row.IsdescriptionNull())
            {
                obj.Description = "";
            }
            else
            {
                obj.Description = row.description;
            }
        }

        #endregion
    }
}
